﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master"
    AutoEventWireup="true" CodeFile="userStructure.aspx.cs" Inherits="PublicInformationModule_userStructure" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript" src="../ECOTree/ECOTree.js"></script>
    <link type="text/javascript" rel="Stylesheet" href="../css/ECOTree.css" />
    <title>员工结构图</title>
    <script type="text/javascript">
        var myTree = null;
        function CreateTree() {
            myTree = new ECOTree('myTree', 'myTreeContainer');
            myTree.config.colorStyle = ECOTree.CS_LEVEL;
            myTree.config.nodeFill = ECOTree.NF_FLAT;
            myTree.config.useTarget = false;
            myTree.config.selectMode = ECOTree.SL_NONE;
            myTree.config.defaultNodeWidth = 65;
            myTree.config.defaultNodeHeight = 20;
            myTree.config.iSubtreeSeparation = 20;
            myTree.config.iSiblingSeparation = 15;
            myTree.config.iLevelSeparation = 30;
            //        myTree.add(1, -1, 'Node O');
            //        myTree.add(2, 1, 'Node E');
            //        myTree.add(3, 1, 'Node F');
            //        myTree.add(4, 1, 'Node N');
            //        myTree.add(5, 2, 'Node A');
            //        myTree.add(6, 2, 'Node D');
            //        myTree.add(7, 4, 'Node G');
            //        myTree.add(8, 4, 'Node M');
            //        myTree.add(9, 6, 'Node B');
            //        myTree.add(10, 6, 'Node C');
            //        myTree.add(11, 8, 'Node H');
            //        myTree.add(12, 8, 'Node I');
            //        myTree.add(13, 8, 'Node J');
            //        myTree.add(14, 8, 'Node K');
            //        myTree.add(15, 8, 'Node L');
            myTree.UpdateTree();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc:Navigator Text="员工结构图" runat="server" />
    <div id="myTreeContainer">
    </div>
    <script >
        CreateTree();
    </script>
</asp:Content>
